package com.atguigu07.equals.exer2;

/**
 * ClassName: EqualsTest
 * Package: com.atguigu07.equals.exer2
 * Description:
 *
 * @Author ZY
 * @Create 21:35
 * @Version 1.0
 */
public class EqualsTest {
    public static void main(String[] args) {
        MyDate m1 = new MyDate(14,3,1976);
        MyDate m2 = new MyDate(14,3,1976);
        if(m1 == m2){
            System.out.println("m1 == m2");
        }else{
            System.out.println("m1 != m2");
        }

        if(m1.equals(m2)){
            System.out.println("m1 equals m2");
        }else{
            System.out.println("m1 not equals m2");
        }
    }
}
